All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.servlet.ServletLoader

java.lang.Object
   |
   +----java.lang.ClassLoader
           |
           +----sun.servlet.ServletLoader

public class ServletLoader
extends ClassLoader
ClassLoader for loading servlet classes. The classes are loaded from the directory specified when the ServletLoader is created.


Variable Index

 o classes
 o dir
 o servlets

Constructor Index

 o ServletLoader(String)

Method Index

 o getServlets()
 o loadClass(String, boolean)
Returns the Class for the specified class name.
 o loadClass(String, String)
 o loadServlet(String, ServletConfig)

Variables

 o classes
 protected Hashtable classes
 o servlets
 protected Hashtable servlets
 o dir
 protected String dir

Constructors

 o ServletLoader
 public ServletLoader(String dir)

Methods

 o loadServlet
 public synchronized Servlet loadServlet(String name,
                                         ServletConfig conf) throws ServletException
 o getServlets
 public Enumeration getServlets()
 o loadClass
 protected synchronized Class loadClass(String name,
                                        boolean resolve) throws ClassNotFoundException
Returns the Class for the specified class name.

Parameters:
name - the class name
resolve - if true then resolve Class
Returns:
the resulting Class
Throws: ClassNotFoundException
if the class file cannot be found
Overrides:
loadClass in class ClassLoader
 o loadClass
 protected Class loadClass(String name,
                           String dir)

All Packages  Class Hierarchy  This Package  Previous  Next  Index